package com.atmc.service;

import com.atmc.bean.Supplier;
import com.atmc.mapper.SupplierMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    SupplierMapper supplierMapper;
    @Override
    public List<Supplier>  selectAll() {
        return supplierMapper.selectAll();
    }

    @Override
    public int deleteOne(int id) {
        return supplierMapper.deleteOne(id);
    }

    @Override
    public int updateOne(Supplier supplier) {
        return supplierMapper.updateOne(supplier);
    }

    @Override
    public int insertOne(Supplier supplier) {
        return supplierMapper.insertOne(supplier);
    }
}
